﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link href="/css/style.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="/js/jquery.js"></script>

    <script type="text/javascript">
        $(function () {
            //导航切换
            $(".menuson li").click(function () {
                $(".menuson li.active").removeClass("active")
                $(this).addClass("active");
            });

            $('.title').click(function () {
                var $ul = $(this).next('ul');
                $('dd').find('ul').slideUp();
                if ($ul.is(':visible')) {
                    $(this).next('ul').slideUp();
                } else {
                    $(this).next('ul').slideDown();
                }
            });
        })

        // 权限管理
        window.onload = function () {
            var role = getCookie('role');
            if (!$.isEmptyObject(role)) {
                if (role != '1') { // 非管理员
                    $(".superAdmin").attr("style", "display:none;");//隐藏div
                    if (role === '4') {
                        $(".admin").attr("style", "display:none;");//隐藏div
                    }
                }
            } else {
                $(".superAdmin").attr("style", "display:none;");//隐藏div
                $(".admin").attr("style", "display:none;");//隐藏div
            }
        }

        function getCookie(cname) {
            var name = cname + "=";
            var ca = document.cookie.split(';');
            for (var i = 0; i < ca.length; i++) {
                var c = ca[i].trim();
                if (c.indexOf(name) == 0) {
                    return decodeURI(c.substring(name.length, c.length));
                }
            }
            return "";
        }

    </script>
</head>

<body style="background:#f0f9fd;">
<div class="lefttop"><span></span>菜单栏</div>

<dl class="leftmenu">

    <dd class="student">
        <div class="title">
            <span><img src="/images/leftico06.png"/></span>宿舍管理
        </div>
        <ul class="menuson">
            <li class="student"><cite></cite><a href="tempRecord" target="rightFrame">体温登记</a><i></i></li>
            <li class="admin"><cite></cite><a href="visitRegister" target="rightFrame">来访登记</a><i></i></li>
            <li class="admin"><cite></cite><a href="pushBulletin" target="rightFrame">发布公告</a><i></i></li>
        </ul>
    </dd>
    <dd class="admin">
        <div class="title">
            <span><img src="/images/leftico08.png"/></span>信息检索
        </div>
        <ul class="menuson">
            <!--            <li><cite></cite><a href="viewDormInfo" target="rightFrame">留言查看</a><i></i></li>-->
            <li class="admin"><cite></cite><a href="viewTempRecordInfo" target="rightFrame">体温登记检索</a><i></i></li>
            <li class="admin"><cite></cite><a href="viewVisitRecordInfo" target="rightFrame">访问记录检索</a><i></i></li>
            <li class="admin"><cite></cite><a href="viewBulletinInfo" target="rightFrame">公告信息检索</a><i></i></li>
        </ul>
    </dd>
    <dd class="superAdmin">
        <div class="title">
            <span><img src="/images/infoManagement.png"/></span>信息管理
        </div>
        <ul class="menuson">
            <li class="superAdmin"><cite></cite><a href="viewStuInfo" target="rightFrame">学生管理</a><i></i></li>
            <li class="superAdmin"><cite></cite><a href="viewDormitoryInfo" target="rightFrame">宿舍管理</a><i></i></li>
            <li class="superAdmin"><cite></cite><a href="viewDeptInfo" target="rightFrame">院系管理</a><i></i></li>
            <li class="superAdmin"><cite></cite><a href="viewMajorInfo" target="rightFrame">专业管理</a><i></i></li>
            <li class="superAdmin"><cite></cite><a href="viewClazzInfo" target="rightFrame">班级管理</a><i></i></li>
        </ul>
    </dd>
    <dd class="student">
        <div class="title">
            <span><img src="/images/leftico07.png"/></span>用户管理
        </div>
        <ul class="menuson">
            <li class="superAdmin"><cite></cite><a href="addUser" target="rightFrame">添加用户</a><i></i></li>
            <li class="superAdmin"><cite></cite><a href="viewUserInfo" target="rightFrame">用户信息检索</a><i></i></li>
            <li class="student"><cite></cite><a href="viewOwnUser" target="rightFrame">个人信息管理</a><i></i></li>
        </ul>
    </dd>
</dl>

</body>
</html>
